package com.xunqi.mall.service;

import com.github.pagehelper.PageInfo;
import com.xunqi.mall.vo.ProductDetailVo;
import com.xunqi.mall.vo.ResponseVo;

/**
 * @Description:
 * @Created with IntelliJ IDEA.
 * @author: 夏沫止水
 * @create: 2020-04-23 21:07
 **/
public interface ProductService {

    /**
     * 可根据类目id和分页查询商品信息
     * @param categoryId
     * @param pageNum
     * @param pageSize
     * @return
     */
    ResponseVo<PageInfo> list(Integer categoryId,Integer pageNum,Integer pageSize);


    /**
     * 根据类目id查询商品信息
     * @param categoryId
     * @return
     */
    ResponseVo<ProductDetailVo> detail(Integer categoryId);
}
